﻿using System.Configuration;

using umbraco.cms.presentation;

namespace netaddICTs.Umb.ProtectedMedia.Business.Configuration{

    public class Nodes : ConfigurationElement{

        internal const string LoginPropertyName = "login";

        [ConfigurationProperty(LoginPropertyName, IsRequired = false, IsKey = false, IsDefaultCollection = false)]
        public Node Login {
            get { return (Node)base[LoginPropertyName]; }
            set { base[LoginPropertyName] = value; }
        }

        internal const string NoAccessPropertyName = "noAccess";

        [ConfigurationProperty(NoAccessPropertyName, IsRequired = true, IsKey = false, IsDefaultCollection = false)]
        public Node NoAccess {
            get { return (Node) base[NoAccessPropertyName]; }
            set { base[NoAccessPropertyName] = value; }
        }

        internal const string ErrorPropertyName = "error";

        [ConfigurationProperty(ErrorPropertyName, IsRequired = false, IsKey = false, IsDefaultCollection = false)]
        public Node Error {
            get { return (Node)base[ErrorPropertyName]; }
            set { base[ErrorPropertyName] = value; }
        }
    }
}